package com.grwx.omc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.grwx.omc.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.Size;


@Data
@TableName("sys_lookup_type")
public class SysLookupType extends BaseEntity {

    @Size(min = 1, max = 18, message = "类型名称在{0}和{1}之间")
    private String typeName;


    private String typeCode;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    private String remark;
}
